<?php
require_once "/controller/CityController.class.php";
require_once "/model/metadata/City.class.php";
include_once "viewHelper.php";

$body = $f3->get('BODY');
parse_str($body);

$city_id = $f3->get('PARAMS.cityId');

$city = new City($city_id, $name, $population, $country);

$city_controller = new CityController($link);

$city_controller->addCity($city);

echo prepareResponse("200 OK", 200, null);
?>